import request from '@/utils/request'

// 获取我的请假
export function getHolidayPage(query) {
  return request({
    url: '/oa/holiday',
    method: 'get',
    params: query
  })
}

// 创建请假
export function createHoliday(params) {
  return request({
    url: '/oa/holiday',
    method: 'post',
    data: params
  })
}

export function submitProcess(id) {
  return request({
    url: '/oa/holiday/submit/' + id,
    method: 'post'
  })
}

export function getHolidayOfId(id) {
  return request({
    url: '/oa/holiday/' + id,
    method: 'get'
  })
}
